package br.com.sisgerenciamento.generic;


import javax.annotation.Resource;

import org.apache.log4j.Logger;
import org.hibernate.Session;
import org.hibernate.SessionFactory;

public class BuilderHibernateSession{
	
	protected transient Logger logger = Logger.getLogger( BuilderHibernateSession.class.getName() );
	
	@Resource(name="sessionFactory")
	private SessionFactory sessionFactory;

	public Session getSessionAberta() {
    	return sessionFactory.openSession();
    }
	
	
}
